<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\OrderItem
 *
 * @property int $id 自增id
 * @property int $goods_id 商品id
 * @property int $goods_spu_id 商品id
 * @property int $order_id 订单id
 * @property string|null $item_num 子订单编号
 * @property float $m_price 商品原单价
 * @property string $s_price 商品打折后单价
 * @property int $num 购买数量
 * @property string|null $type 订单类型：common:常规订单;integral:积分订单;group:团购订单;bargain:砍价订单;sign_up报名订单
 * @property int $goods_snapshot_id 快照id
 * @property int $status 子订单状态 0：未评价 1：已评价
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\OrderItem onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereGoodsId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereGoodsSnapshotId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereGoodsSpuId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereItemNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereMPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereOrderId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereSPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\OrderItem withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\OrderItem withoutTrashed()
 * @mixin \Eloquent
 * @property string $discount_note 优惠活动
 * @method static \Illuminate\Database\Eloquent\Builder|\App\OrderItem whereDiscountNote($value)
 */
class OrderItem extends Model
{
    protected $table = 'order_item';
    use SoftDeletes;
}
